]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
4 years agost/widget: Emit "style-changed" on all theme changes
Jonas Dreßler [Sun, 17 Nov 2019 23:44:36 +0000 (00:44 +0100)]
st/widget: Emit "style-changed" on all theme changes

Since now the resource consumption of the "style-changed" signal
handlers should be significantly lower, we can start emitting the signal
in all cases again as it was originally intended. This fixes some small
visual issues, like the battery percentage in the panel only being shown
on hover or updating the size of StIcons on scale-factor changes.

This effectively reverts f74c07b9acbdc6945ca37f86bc680701f048f174

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1708

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2099>

4 years agocalendar: Fix xgettext comment for calendar date format
Marek Černocký [Mon, 14 Feb 2022 09:18:52 +0000 (10:18 +0100)]
calendar: Fix xgettext comment for calendar date format

Gettext comments must be right next to the line with the extracted text,
otherwise they aren't included in pot/po file.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2179>

4 years agoUpdate Portuguese translation
Hugo Carvalho [Mon, 14 Feb 2022 13:09:44 +0000 (13:09 +0000)]
Update Portuguese translation

4 years agost/label: Compare shadow spec before invalidating shadow on style change
Jonas Dreßler [Fri, 5 Mar 2021 11:49:36 +0000 (12:49 +0100)]
st/label: Compare shadow spec before invalidating shadow on style change

Just like with the last commit for StEntry, check whether the text
shadow actually changed before invalidating the pipeline on style
changes of StLabel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/entry: Compare shadow spec before invalidating shadow on style change
Jonas Dreßler [Fri, 5 Mar 2021 11:35:26 +0000 (12:35 +0100)]
st/entry: Compare shadow spec before invalidating shadow on style change

Instead of doing a lot of useless work every time we receive the
style-changed signal, only invalidate our text shadow pipeline in case
the shadow actually changed.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/shadow: Add a fast path to comparisons
Jonas Dreßler [Fri, 5 Mar 2021 11:28:39 +0000 (12:28 +0100)]
st/shadow: Add a fast path to comparisons

We do this in most places in St, it's consistent to do it here, too.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/label: Invalidate text shadow on style changes to ClutterText
Jonas Dreßler [Fri, 5 Mar 2021 11:46:00 +0000 (12:46 +0100)]
st/label: Invalidate text shadow on style changes to ClutterText

Just like with the last commit, listen to some ClutterText property
changes to catch style changes that were trigerred by
_st_set_text_from_style() and invalidate the shadow spec on changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/entry: Invalidate text shadow on style changes to ClutterText
Jonas Dreßler [Fri, 5 Mar 2021 11:17:07 +0000 (12:17 +0100)]
st/entry: Invalidate text shadow on style changes to ClutterText

We update a few properties of ClutterText when the CSS changes via
_st_set_text_from_style() (which we call when receiving the
style-changed signal).

Right now we simply invalidate the text shadow every time we receive the
style-changed signal, but we're going to change that with the next
commits. To ensure the shadow still gets invalidated on CSS changed that
might affect the shadow, listen to a bunch of property changes that will
get notified when any property that affects the shadow changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agost/entry: Invalidate shadow on cursor position/size changes
Jonas Dreßler [Fri, 5 Mar 2021 10:31:26 +0000 (11:31 +0100)]
st/entry: Invalidate shadow on cursor position/size changes

When text shadows are used, the cursor indicating the current position
also casts a shadow.

This means we have to regenerate the shadow texture after the cursor
position changed, so invalidate the shadow in that case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1744>

4 years agoUpdate Slovenian translation
Matej Urbančič [Sun, 13 Feb 2022 16:46:28 +0000 (16:46 +0000)]
Update Slovenian translation

4 years agoUpdate Chinese (China) translation
Luming Zh [Sun, 13 Feb 2022 16:44:22 +0000 (16:44 +0000)]
Update Chinese (China) translation

4 years agoUpdate Russian translation
Aleksandr Melman [Sun, 13 Feb 2022 16:32:38 +0000 (16:32 +0000)]
Update Russian translation

4 years agopopupMenu: Avoid open state reentrancy in dummy menus
Carlos Garnacho [Sun, 13 Feb 2022 13:05:41 +0000 (14:05 +0100)]
popupMenu: Avoid open state reentrancy in dummy menus

Dummy menus may emit ::open-state-changed multiple times for
the same state. Avoid doing that so that the PopupMenuManager
is happy not having to handle reentrancy.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5064
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2178>

4 years agoshell: Shuffle ifdef to fix !HAVE_SYSTEMD build
Carlos Garnacho [Sun, 13 Feb 2022 09:56:28 +0000 (10:56 +0100)]
shell: Shuffle ifdef to fix !HAVE_SYSTEMD build

The internal SystemdFlags enum is used from common code for
both systemd availability cases. Shuffle it outside the ifdef
so it's seen everywhere.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2177>

4 years agoUpdate Bulgarian translation
Alexander Shopov [Sun, 13 Feb 2022 10:37:09 +0000 (10:37 +0000)]
Update Bulgarian translation

4 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 13 Feb 2022 09:13:41 +0000 (09:13 +0000)]
Update Basque translation

4 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Sun, 13 Feb 2022 00:50:05 +0000 (00:50 +0000)]
Update Brazilian Portuguese translation

4 years agoUpdated Czech translation
Marek Černocký [Sat, 12 Feb 2022 22:15:15 +0000 (23:15 +0100)]
Updated Czech translation

4 years agoUpdated Czech translation
Marek Černocký [Sat, 12 Feb 2022 22:11:20 +0000 (23:11 +0100)]
Updated Czech translation

4 years agoUpdate Galician translation
Fran Dieguez [Sat, 12 Feb 2022 20:34:25 +0000 (20:34 +0000)]
Update Galician translation

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 12 Feb 2022 16:27:42 +0000 (16:27 +0000)]
Update Ukrainian translation

4 years agoworkspaceSwitcherPopup: Implement new OSD design
Florian Müllner [Wed, 26 Jan 2022 00:33:21 +0000 (01:33 +0100)]
workspaceSwitcherPopup: Implement new OSD design

Move the popup to the bottom and represent workspaces as small dots
instead of as scaled down representations of the work area.

https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/152

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoworkspaceSwitcherPopup: Fix fading in
Florian Müllner [Wed, 26 Jan 2022 00:43:15 +0000 (01:43 +0100)]
workspaceSwitcherPopup: Fix fading in

The popover is supposed to fade in, but that's currently
broken because:

 - we already start at full opacity
 - Clutter skips transitions while unmapped

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoworkspaceSwitcherPopup: Drop direction parameter
Florian Müllner [Wed, 26 Jan 2022 00:26:44 +0000 (01:26 +0100)]
workspaceSwitcherPopup: Drop direction parameter

The original popup included arrows that indicated the direction of
the switch. We stopped doing that a long time ago, and ever since
the popup has only indicated active vs. non-active workspaces.

Simplify both the API and style to reflect that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoosdWindow: Implement new OSD design
Florian Müllner [Tue, 25 Jan 2022 22:15:52 +0000 (23:15 +0100)]
osdWindow: Implement new OSD design

Switch to a horizontal layout, use smaller icons and move
the OSD to the bottom of the screen.

https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/152

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoosdWindow: Don't inherit from St.Widget
Florian Müllner [Tue, 25 Jan 2022 19:31:07 +0000 (20:31 +0100)]
osdWindow: Don't inherit from St.Widget

We don't apply any styling to the toplevel OSD actor, so we can just
as well avoid the style machinery and use a plain actor.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

4 years agoextensions-app: Update screenshots with the latest design
Romain Vigier [Sat, 22 Jan 2022 15:48:16 +0000 (16:48 +0100)]
extensions-app: Update screenshots with the latest design

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Update authors list
Romain Vigier [Tue, 18 Jan 2022 12:24:21 +0000 (13:24 +0100)]
extensions-app: Update authors list

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Enable/disable an extension by activating the row
Romain Vigier [Tue, 18 Jan 2022 12:04:55 +0000 (13:04 +0100)]
extensions-app: Enable/disable an extension by activating the row

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Remove extension row revealer
Romain Vigier [Tue, 18 Jan 2022 12:00:03 +0000 (13:00 +0100)]
extensions-app: Remove extension row revealer

Make all the actions (open website, open preferences, remove extension) and
information (description, version number) readily available.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Change lists style class to `.boxed-list`
Romain Vigier [Tue, 18 Jan 2022 10:37:51 +0000 (11:37 +0100)]
extensions-app: Change lists style class to `.boxed-list`

The previous `.content` style class is deprecated.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agoextensions-app: Move headerbar content to the main view
Romain Vigier [Tue, 18 Jan 2022 10:19:54 +0000 (11:19 +0100)]
extensions-app: Move headerbar content to the main view

With the new borderless style of libadwaita, the global switch in the headerbar
did not look good. Moving it to the main view is the opportunity to also move
the content of the information popover.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>

4 years agostatus/remote-access: Don't show recording icon for screenshot UI casts
Ivan Molodetskikh [Wed, 9 Feb 2022 07:00:07 +0000 (10:00 +0300)]
status/remote-access: Don't show recording icon for screenshot UI casts

If there's only a single recording and it is the screenshot UI
recording, don't show the icon, because it's already displayed by the
new panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agostatus/remote-access: Remove menu for stopping screencasts
Ivan Molodetskikh [Wed, 9 Feb 2022 06:59:03 +0000 (09:59 +0300)]
status/remote-access: Remove menu for stopping screencasts

It is now handled by a dedicated panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agopanel: Add a screen recording indicator
Ivan Molodetskikh [Tue, 8 Feb 2022 16:18:01 +0000 (19:18 +0300)]
panel: Add a screen recording indicator

The indicator shows the recording duration and lets the user stop it on
click. It is more discoverable than the stop entry in the aggregate
menu.

The class extends ButtonBox directly rather than Button because Button
does nothing that it uses, and actually causes issues with its dummy
menu (its vfunc_hide() throws an "open-state-changed: Error: incorrect
pop").

The menu-set signal declaration is required by the panel.

The screencast is stopped upon button press in vfunc_event(), which
matches PanelMenu.Button's input handling.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agomain: Move screenshotUI initialization earlier
Ivan Molodetskikh [Tue, 8 Feb 2022 16:13:25 +0000 (19:13 +0300)]
main: Move screenshotUI initialization earlier

A new screen recording panel indicator will connect to its signal, so it
needs to be initialized before the panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agoicons: Add stop-symbolic
Ivan Molodetskikh [Tue, 8 Feb 2022 16:12:23 +0000 (19:12 +0300)]
icons: Add stop-symbolic

This is a smaller version of the pre-installed
media-playback-stop-symbolic. It will be used for the screen recording
indicator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

4 years agobackground: Handle errors when loading wallpapers
Alexander Mikhaylenko [Sat, 12 Feb 2022 13:33:51 +0000 (18:33 +0500)]
background: Handle errors when loading wallpapers

Since it happens while setting up the startup animation, we will get stuck
inside that animation and block input if it fails.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5062

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2176>

4 years agoAdd new screenshot UI icons
Ivan Molodetskikh [Wed, 9 Feb 2022 16:55:03 +0000 (19:55 +0300)]
Add new screenshot UI icons

To replace the applets-screenshooter one that was deprecated and isn't
even available on GNOME OS anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2167>

4 years agodateMenu: Replace ellipsis with full sentences
Björn Daase [Mon, 7 Feb 2022 11:24:51 +0000 (12:24 +0100)]
dateMenu: Replace ellipsis with full sentences

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2108>

4 years agojs: Use templates for non-translatable strings
Florian Müllner [Mon, 7 Feb 2022 14:14:06 +0000 (15:14 +0100)]
js: Use templates for non-translatable strings

This reverts commit 9d941f8202125fa and replaces all additional
instances of .format() that have been added since.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>

4 years agojs: Reindent some code
Florian Müllner [Mon, 7 Feb 2022 15:03:55 +0000 (16:03 +0100)]
js: Reindent some code

... to make sure it conforms to the non-legacy style
before touching it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>

4 years agoci: Stop prohibiting template strings in files with translations
Florian Müllner [Mon, 7 Feb 2022 13:09:13 +0000 (14:09 +0100)]
ci: Stop prohibiting template strings in files with translations

It has been nearly two years since the last regression reported in
https://savannah.gnu.org/bugs/?func=detailitem&item_id=50920 has been
fixed, and no further regressions were reported in the meantime.

It looks therefore safe enough to not restrict ourselves, and start
allowing templates for all non-translatable strings again.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>

4 years agoibusManager: Fix version in log message
Florian Müllner [Mon, 7 Feb 2022 14:14:42 +0000 (15:14 +0100)]
ibusManager: Fix version in log message

Whoops, we the log message complaints about minor.minor instead
of minor.micro.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>

4 years agoscreenshot-ui: Add a key to open the screencast UI
Ivan Molodetskikh [Sat, 15 Jan 2022 16:07:15 +0000 (19:07 +0300)]
screenshot-ui: Add a key to open the screencast UI

It replaces the "record a short screencast" key from g-s-d.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoscreenshot-ui: Add mode argument to open()
Ivan Molodetskikh [Thu, 3 Feb 2022 19:47:07 +0000 (22:47 +0300)]
screenshot-ui: Add mode argument to open()

In a subsequent commit we will add a function to open the screenshot UI
in the screencast mode. This argument will allow us to do that without
resorting to accessing private fields from the outside.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoscreenshot: Connect shot/cast toggle with bind_property
Ivan Molodetskikh [Sat, 12 Feb 2022 07:21:37 +0000 (10:21 +0300)]
screenshot: Connect shot/cast toggle with bind_property

This way we don't need to uncheck the other button manually, and it also
allows switching the mode by setting the other button's checked to
false, and not just by setting the target mode's button to true. An
example clean-up can be seen in the "V" key handler.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoscreenshot-ui: Add two key bindings from g-s-d
Ivan Molodetskikh [Sat, 15 Jan 2022 16:06:49 +0000 (19:06 +0300)]
screenshot-ui: Add two key bindings from g-s-d

These two are moving into gnome-shell to unify screenshot handling and
allow for same-frame capturing.

While we're at it, move the keybindings .xml file from g-c-c here
because it belongs to gnome-shell.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoscreenshot-ui: Extract binding modes
Ivan Molodetskikh [Thu, 3 Feb 2022 19:40:23 +0000 (22:40 +0300)]
screenshot-ui: Extract binding modes

We will re-use the same modes for more bindings in subsequent commits.
Also, while we're at it, invert the modes, to emphasize where the
screenshot UI cannot be used, rather than where it can be used.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2107>

4 years agoci: Include .ui files in POTFILES check
Florian Müllner [Thu, 10 Feb 2022 17:18:34 +0000 (18:18 +0100)]
ci: Include .ui files in POTFILES check

As the previous commit shows, just checking source files isn't
enough. Extending the existing check to .ui files should make
sure that we catch that kind of breakage in the future before
it hits translators.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2173>

4 years agopo: Update POTFILES.in
Florian Müllner [Thu, 10 Feb 2022 17:24:23 +0000 (18:24 +0100)]
po: Update POTFILES.in

Commit ae92c1c4eb07ea shuffled GTK templates around, without
reflecting the change in POTFILES.in.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2173>

4 years agowindowMenu: Add an entry to take a screenshot
Ivan Molodetskikh [Fri, 27 Aug 2021 16:17:46 +0000 (19:17 +0300)]
windowMenu: Add an entry to take a screenshot

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2105>

4 years agoscreenshot: Make captureScreenshot async
Ivan Molodetskikh [Wed, 9 Feb 2022 11:31:31 +0000 (14:31 +0300)]
screenshot: Make captureScreenshot async

Now that it's split out and has no implicit arguments we can convert it
to be a proper async function.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2105>

4 years agoscreenshot-ui: Split out captureScreenshot()
Ivan Molodetskikh [Fri, 27 Aug 2021 16:17:13 +0000 (19:17 +0300)]
screenshot-ui: Split out captureScreenshot()

It will be used for the window right-click menu and for handling keys
that are moving here from g-s-d.

Lockdown settings are also moving into the split _storeScreenshot() as
that is the only place where they are used.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2105>

4 years agoibusManager: Check existence of IBus systemd units before manual start
Carlos Garnacho [Thu, 10 Feb 2022 13:08:06 +0000 (14:08 +0100)]
ibusManager: Check existence of IBus systemd units before manual start

IBus is moving to being a systemd managed service in GNOME sessions
(see https://github.com/ibus/ibus/pull/2377). Since there will be a
transition period, and we still have to support non-systemd sessions,
check for this existence at runtime.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2171>

4 years agoshell: Add call to check the existence of a systemd unit
Carlos Garnacho [Thu, 10 Feb 2022 13:06:30 +0000 (14:06 +0100)]
shell: Add call to check the existence of a systemd unit

These checks will be handy while handling ibus-daemon startup, since
this is going to move to a systemd service soon.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2171>

4 years agoshell: Refactor internal calls to systemd service
Carlos Garnacho [Thu, 10 Feb 2022 13:05:41 +0000 (14:05 +0100)]
shell: Refactor internal calls to systemd service

Add some parameters to make these calls useful beyond starting
and stopping units. We will need to query the existence of units
for starters.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2171>

4 years agocalendarMenu: Fix several visual issues with calendar and notifications
Sam Hewitt [Mon, 7 Feb 2022 17:37:54 +0000 (14:07 -0330)]
calendarMenu: Fix several visual issues with calendar and notifications

- drop card style from calendar
- remove focus ability from non-interactive calendar elements
- flesh out the styles for the calendar grid
- fix margin and padding issue with login screen calendar
- update no-notifications icon
- add padding to media player buttons
- catch a couple other minor style papercuts

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2161>

4 years agocalendar: Reindent code
Florian Müllner [Thu, 10 Feb 2022 19:21:58 +0000 (20:21 +0100)]
calendar: Reindent code

We are about to touch some code that still uses the legacy indentation
style.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2161>

4 years agoshellDBus: Add ScreenTransition()
Alexander Mikhaylenko [Thu, 23 Sep 2021 07:45:14 +0000 (12:45 +0500)]
shellDBus: Add ScreenTransition()

Settings will use this when switching between light and dark styles.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2070>

4 years agoRevert "background: Mark pattern backgrounds as loaded"
Alexander Mikhaylenko [Tue, 8 Feb 2022 16:59:59 +0000 (21:59 +0500)]
Revert "background: Mark pattern backgrounds as loaded"

This reverts commit fdac0602db157207e233ee44ad4ccb06bf64ff5d.

The commit was fixing a crash, which cannot longer be reproduced, but also
introduced a noticeable white flash when switching wallpapers. This will
become even more noticeable when we try to uniformly transition the whole
screen.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2070>

4 years agonetwork: Update Settings appid
Alexander Mikhaylenko [Fri, 11 Feb 2022 16:14:00 +0000 (21:14 +0500)]
network: Update Settings appid

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2175>

4 years agoshellDBus: Update Settings appid
Alexander Mikhaylenko [Fri, 11 Feb 2022 16:13:50 +0000 (21:13 +0500)]
shellDBus: Update Settings appid

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2175>

4 years agojs: Simplify promisify() calls
Florian Müllner [Thu, 10 Feb 2022 23:09:54 +0000 (00:09 +0100)]
js: Simplify promisify() calls

If the finish function isn't specified, promisify will now try
to use the async name without '_async'/'_begin' suffix (if any)
and '_finish' appended.

Everything except IBus uses a variation of that pattern, so there's
quite a bit of boilerplate we get to remove…

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2174>

4 years agojs: Stop using Gio._LocalFilePrototype
Florian Müllner [Thu, 10 Feb 2022 23:15:27 +0000 (00:15 +0100)]
js: Stop using Gio._LocalFilePrototype

gjs now supports overriding interface methods, so promisify()
works on Gio.File itself, not just the LocalFilePrototype cludge.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2174>

4 years agoLet users use the other mouse button to switch
Razze [Sat, 4 Sep 2021 09:33:00 +0000 (11:33 +0200)]
Let users use the other mouse button to switch

As users can have different primary mouse buttons (left vs right) it
might happen, that a user with a different
preference wants to switch. Currently they need
to use the mouse button, that the current
user prefers.

This change enables users to use either the left or right button.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1972>

4 years agoUpdate Brazilian Portuguese translation
Leônidas Araújo [Thu, 10 Feb 2022 20:27:38 +0000 (20:27 +0000)]
Update Brazilian Portuguese translation

4 years agostatus/location: Track enabled state
Florian Müllner [Wed, 9 Feb 2022 19:23:30 +0000 (20:23 +0100)]
status/location: Track enabled state

More fallout from commit e3a1d84992: We are tracking the agent's
:max-accuracy-level property that we don't use, but not :enabled.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5043

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2170>

4 years agostatus/location: Use correct enabled state
Florian Müllner [Wed, 9 Feb 2022 19:26:26 +0000 (20:26 +0100)]
status/location: Use correct enabled state

Commit e3a1d84992 split out the agent from the indicator, but kept
using a local 'enabled' property with no connection at all to the
actual state.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5043

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2170>

4 years agodbusServices: Allow to persist services via environment
Florian Müllner [Wed, 9 Feb 2022 18:46:37 +0000 (19:46 +0100)]
dbusServices: Allow to persist services via environment

Auto-shutdown prevents debugging a service with tools like
d-feet, so allow turning it off with an environment variable.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2169>

4 years agoshell: Specify G_PARAM_EXPLICIT_NOTIFY where appropriate
Florian Müllner [Wed, 9 Feb 2022 17:37:44 +0000 (18:37 +0100)]
shell: Specify G_PARAM_EXPLICIT_NOTIFY where appropriate

Like we did in ST, opt out of g_object_set()'s implicit change
notifications, so that notify is only emitted when a property
*actually* changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>

4 years agoshell: Use g_object_notify_by_pspec() where possible
Florian Müllner [Wed, 9 Feb 2022 17:14:04 +0000 (18:14 +0100)]
shell: Use g_object_notify_by_pspec() where possible

It's slightly more efficient not having to do property lookups. While
that is unlikely to be a concern for the properties in question, it's
still good practice and makes the code base a bit more consistent.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>

4 years agoshell/app: Remove unused property ID
Florian Müllner [Wed, 9 Feb 2022 17:10:24 +0000 (18:10 +0100)]
shell/app: Remove unused property ID

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>

4 years agost: Specify G_PARAM_EXPLICIT_NOTIFY where appropriate
Florian Müllner [Wed, 9 Feb 2022 12:59:15 +0000 (13:59 +0100)]
st: Specify G_PARAM_EXPLICIT_NOTIFY where appropriate

We are now consistently calling notify() when a property does change.

With that we can opt out of g_object_set()'s implicit change notifications,
so that notify is only emitted when a property *actually* changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>

4 years agost: Use g_object_notify_by_pspec() where possible
Florian Müllner [Wed, 9 Feb 2022 14:22:42 +0000 (15:22 +0100)]
st: Use g_object_notify_by_pspec() where possible

It's slightly more efficient not having to do property lookups. While
that is unlikely to be a concern for the properties in question, it's
still good practice and makes the code base a bit more consistent.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>

4 years agost: Add static setters
Florian Müllner [Wed, 9 Feb 2022 14:17:46 +0000 (15:17 +0100)]
st: Add static setters

Even where properties can only be set via g_object_set(), separate
setters help with code organization and consistency with other
properties.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>

4 years agost/scroll-view: Add missing notify call
Florian Müllner [Wed, 9 Feb 2022 15:17:11 +0000 (16:17 +0100)]
st/scroll-view: Add missing notify call

Another property where changes aren't notified when going through
the public setter.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>

4 years agost/entry: Add missing notify calls
Florian Müllner [Wed, 9 Feb 2022 16:03:13 +0000 (17:03 +0100)]
st/entry: Add missing notify calls

Whoops, at the moment changes of most properties are only notified
when going through g_object_set() and not when using the public
setters.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>

4 years agoUpdated Czech translation
Marek Černocký [Wed, 9 Feb 2022 20:35:52 +0000 (21:35 +0100)]
Updated Czech translation

4 years agoUpdate Portuguese translation
Hugo Carvalho [Wed, 9 Feb 2022 18:37:10 +0000 (18:37 +0000)]
Update Portuguese translation

4 years agoUpdate Galician translation
Fran Dieguez [Wed, 9 Feb 2022 18:36:56 +0000 (18:36 +0000)]
Update Galician translation

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Wed, 9 Feb 2022 18:36:11 +0000 (18:36 +0000)]
Update Ukrainian translation

4 years agoUpdate Chinese (China) translation
Luming Zh [Wed, 9 Feb 2022 18:34:59 +0000 (18:34 +0000)]
Update Chinese (China) translation

4 years agoUpdate Indonesian translation
Kukuh Syafaat [Wed, 9 Feb 2022 18:34:22 +0000 (18:34 +0000)]
Update Indonesian translation

4 years agopopupMenu: Avoid intermediate focus changes on menu switch
Carlos Garnacho [Wed, 9 Feb 2022 14:32:56 +0000 (15:32 +0100)]
popupMenu: Avoid intermediate focus changes on menu switch

Currently when switching from a popup menu to another in the same
manager, we first show the new menu, then hide the old menu and
remove its grab, then create a new grab for the just shown menu.

This briefly ungrabbed moment will still trigger keyboard focus
changes, that might have other visible effects. In order to fix
this, change the grabbing order so first the new grab is created
then the old one is dismissed. This ensures focus moves from the
old menu to the new menu without gaps in between.

Since a grab is tied to an active menu, but close/grab are now
slightly decoupled, also ensure closing a menu only tears down its
own grab. This is necessary for correct accounting while doing the
grab shuffling.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5039
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2166>

4 years agodbusServices/screencast: Removed unused properties
Florian Müllner [Tue, 8 Feb 2022 17:44:43 +0000 (18:44 +0100)]
dbusServices/screencast: Removed unused properties

Those have been superseded by corresponding state enums.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2165>

4 years agostatus/bluetooth: Fix wedged state
Bastien Nocera [Tue, 18 Jan 2022 10:14:47 +0000 (11:14 +0100)]
status/bluetooth: Fix wedged state

Fix a state where toggling the main Bluetooth switch in the header will
always show the "Bluetooth Off" menu header with "Turn Off" as the only
option.

To reproduce, with Bluetooth enabled and working, run
"hciconfig hci0 down" as root, and check the status menu.

See gnome-bluetooth!102 and gnome-control-center!1148

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4857
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2055>

4 years agostatus/bluetooth: Port to new GListModel API
Bastien Nocera [Thu, 2 Dec 2021 10:44:47 +0000 (11:44 +0100)]
status/bluetooth: Port to new GListModel API

The GtkTreeView API was removed, and replaced with a GListModel API.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4748
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2055>

4 years agoglsl-effect: Allow to set uniform matrices
Sebastian Wick [Tue, 8 Feb 2022 20:22:58 +0000 (21:22 +0100)]
glsl-effect: Allow to set uniform matrices

Add support for setting a uniform matrix on GLSLEffect because the color
vision deficiency simulation extension requires it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2164>

4 years agodbusServices/extensions: Give extensions access to the prefs window
Florian Müllner [Fri, 30 Jul 2021 08:12:11 +0000 (10:12 +0200)]
dbusServices/extensions: Give extensions access to the prefs window

The current preference API - buildPrefsWidget() - predates client-side
decorations. While extension authors have been finding ways around
the limitation of not having access to the window/titlebar, the change
to the new Adwaita API seems like a good time for an updated API that
officially provides that access (as far as allowed by libadwaita).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agodbusServices/extensions: Stop setting a default size
Florian Müllner [Fri, 29 Oct 2021 18:07:25 +0000 (20:07 +0200)]
dbusServices/extensions: Stop setting a default size

Adw.PreferencesWindow already sets an appropriate default.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agodbusServices/extensions: Use default style class
Florian Müllner [Fri, 21 Jan 2022 19:04:33 +0000 (20:04 +0100)]
dbusServices/extensions: Use default style class

libadwaita provides a series of style classes as part of its API.
Use those instead of meddling manually with the font size.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agodbusServides/extensions: Use Adw.PreferencesWindow
Florian Müllner [Fri, 30 Jul 2021 00:33:54 +0000 (02:33 +0200)]
dbusServides/extensions: Use Adw.PreferencesWindow

Adapt the new GNOME platform API for the upcoming 42. This makes
sure that we get the latest version of the stylesheet, as well as
support for the new dark mode.

Using the dedicated preference API also gives extensions with more
complex preferences an easier and standardized way for implementing
multi-page preferences.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agodbusServices/extensions: Simplify actions handling
Florian Müllner [Thu, 29 Jul 2021 22:58:18 +0000 (00:58 +0200)]
dbusServices/extensions: Simplify actions handling

GTK4 has dedicated API for widget-specific actions, make use of that
instead of explicitly managing an action group.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agodbusServices/extensions: Split error page from window
Florian Müllner [Thu, 29 Jul 2021 22:26:05 +0000 (00:26 +0200)]
dbusServices/extensions: Split error page from window

The error UI comprises the bits that are actually custom. Splitting them
out from the off-the-shelf window makes it easier to replace the dialog
with libadwaita's dedicated preference window.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agodbusServices/extensions: Split out prefs dialog
Florian Müllner [Thu, 29 Jul 2021 22:06:36 +0000 (00:06 +0200)]
dbusServices/extensions: Split out prefs dialog

We're about to make changes to the UI, so this seems to be a good
time to split GUI and service code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agodbus-services/extensions: Remove outdated requires
Florian Müllner [Sat, 8 Jan 2022 20:25:49 +0000 (21:25 +0100)]
dbus-services/extensions: Remove outdated requires

We are using GTK4, not GTK3 >= 3.20 ...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2012>

4 years agoosk: Remove a duplicate key from Malayalam
Mohammed Sadiq [Tue, 8 Feb 2022 06:01:59 +0000 (11:31 +0530)]
osk: Remove a duplicate key from Malayalam

The same key has been included as the first item on the third row

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2162>

4 years agopowerProfiles: Remove support for power-profiles-daemon < 0.9.0
Bastien Nocera [Fri, 14 Jan 2022 11:27:57 +0000 (12:27 +0100)]
powerProfiles: Remove support for power-profiles-daemon < 0.9.0

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2101>

4 years agomain: Raise the NOFILE limit if a Wayland compositor
Olivier Fourdan [Wed, 19 Jan 2022 09:24:34 +0000 (10:24 +0100)]
main: Raise the NOFILE limit if a Wayland compositor

When being run as a Wayland compositor, raise the NOFILE limit to
mitigate the risk of running out of file descriptors.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>